// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 26.1.14
description: >
  Reflect.setPrototypeOf.name value and property descriptor
info: |
  26.1.14 Reflect.setPrototypeOf ( target, proto )

  17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
features: [Reflect, Reflect.setPrototypeOf]
---*/

function Test() {
    assert.sameValue(
      Reflect.setPrototypeOf.name, 'setPrototypeOf',
      'The value of `Reflect.setPrototypeOf.name` is `"setPrototypeOf"`'
    );

    verifyNotEnumerable(Reflect.setPrototypeOf, 'name');
    verifyNotWritable(Reflect.setPrototypeOf, 'name');
}

// preheat
const NUMBER_OF_PREHEAT = 1;
for (let i = 0; i < NUMBER_OF_PREHEAT; i++) {
    Test();
}

ArkTools.jitCompileAsync(Test);
assert.sameValue(ArkTools.waitJitCompileFinish(Test), true, '[JIT] JIT disabled.');

// test
const NUMBER_OF_TEST = 1; // or 2
for (let i = 0; i < NUMBER_OF_PREHEAT; i++) {
    Test();
}
